﻿#ifndef LOCALCONTEXT_H
#define LOCALCONTEXT_H

#include <QObject>
#include <QMutex>

class LocalContext : public QObject
{
    Q_OBJECT
public:
    explicit LocalContext(QObject *parent = nullptr);
    ~LocalContext();

    // 单例模式
    static LocalContext* instance();


private:
    // 唯一实例
    static LocalContext* m_instance;
    static QMutex m_instanceMutex;

private:

};

#endif // LOCALCONTEXT_H
